import service from "@/service/http"

export default {
  // 查询裸金属商品
  getBmsGoods(data) {
    return service({
      method: "get",
      url: "/eks-service/op/get_bms_goods",
      params: data
    })
  },
  // 新增商品信息
  addBmsGoods(data) {
    return service({
      method: "post",
      url: "/eks-service/op/add_bms_goods",
      data
    })
  },
  // 修改商品信息
  editGoods(data) {
    return service({
      method: "put",
      url: "/eks-service/op/edit_bms_goods",
      data
    })
  },
  // 删除商品
  deleteGoods(data) {
    return service({
      method: "delete",
      url: "/eks-service/op/del_bms_goods",
      params: data
    })
  },
  // 查询gpu类型标签
  getGpuType(data) {
    return service({
      method: "get",
      url: "/eks-service/op/get_gpu_type",
      params: data
    })
  },
  // 查询平台商品
  getPlatGoods(data) {
    return service({
      method: "post",
      url: "/eks-service/op/get_goods",
      data
    })
  }
}